package routers

import (
	"gin_study_blog/api"
)

func (r RouterGroup) UploadsRouter() {
	uploadsApi := api.ApiGroupApp.ImageUploadApi
	// 上传文件
	r.POST("uploads", uploadsApi.ImageUpload)
	// 文件列表
	r.GET("uploads_list", uploadsApi.UploadsListView)
	// 文件名称列表
	r.GET("uploads_name", uploadsApi.ImageNameListView)
	// 文件删除
	r.DELETE("uploads_delete", uploadsApi.ImagesRemove)
	// 修改文件名称
	r.PUT("uploads_modify", uploadsApi.ImageUpdateName)
}
